﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BTaxiCDMA
    {
        private readonly DTaxiCDMA _dal = new DTaxiCDMA();

        public bool ExistsDeviceNumber(string deviceNumber)
        {
           return _dal.ExistsDeviceNumber(deviceNumber);
        }

         public bool ExistsPhoneNumber(string phoneNumber)
         {
             return _dal.ExistsPhoneNumber(phoneNumber);
         }
         
        public bool Add(Model.TaxiCdmaInfo model)
        {
            return _dal.Add(model);
        }
       
        public bool Update(Model.TaxiCdmaInfo model)
        {
            return _dal.Update(model);
        }
       
        public bool Delete(int id)
        {
            return _dal.Delete(id);
        }
       
        public bool DeleteList(string idlist)
        {
            return _dal.DeleteList(idlist);
        }
         
        public Model.TaxiCdmaInfo GetModelById(int id)
        {
            return _dal.GetModelById(id);
        }
 
        public Model.TaxiCdmaInfo GetModelByDeviceNumber(string deviceNumber)
        {
            return _dal.GetModelByDeviceNumber(deviceNumber);
        }
        
         public Model.TaxiCdmaInfo GetModelByPhoneNumber(string phoneNumber)
         {
             return _dal.GetModelByPhoneNumber(phoneNumber);
         }

        public DataSet GetList(string strWhere)
        {
            return _dal.GetList(strWhere);
        }
    }
}
